package com.j2eefast.web.job.task;

import com.j2eefast.web.service.JumucGoodsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("jobInitJumucGoods")
public class JobInitJumucGoods {

    private final static Logger LOGGER = LoggerFactory.getLogger(JobInitJumucGoods.class);

    @Autowired
    private JumucGoodsService jumucGoodsService;

    public void initJumucGoods(){
        LOGGER.info("开始初始化商品列表");
        jumucGoodsService.initGoodsList();
        LOGGER.info("完成商品列表初始化");
    }
}
